package prototypeModel;

public class Maile implements Cloneable{

    private String receiver;

    private String subject;

    private String chenghu;

    private String context;

    public Maile(AdvTemple temple){
        this.subject=temple.getAdvSubject();
        this.context=temple.getAdvContext();
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getChenghu() {
        return chenghu;
    }

    public void setChenghu(String chenghu) {
        this.chenghu = chenghu;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public Maile clone(){
        Maile maile=null;
        try {
            maile=(Maile) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return maile;
    }
}
